Renderer = {
		region: function( qty, dom, row, index) {
			if (qty == '0') {
				return('');
			} else {
				return('<div class="region_notempty" />');
			}
		}
	,	event_region: function( qty, dom, row, index) {
			if (qty == '0') {
				return('');
			} else {
				return('<div class="region_notempty"><sup>' + qty + '</sup></div>');
			}
		}	
}

Config = {
		baseUrl : "http://128.95.249.145/northsoundprairies/"
//		baseUrl: 'http://www.silverbiology.com/clients/pugetsound/'
	,	mode: 'local'
	,	loginTitle: 'North Puget Sound Prairies Members Sign in'
	,	contactEmail: 'support@silverbiology.com'
	,	mainTitle: 'North Puget Sound Prairies'
	,	eventMatrixColumns: [
				{header: "Event Type", id: 'title', width: 210, dataIndex: 'title', sortable: true}
			,	{header: "Smith Prairie", tooltip: 'Smith Prairie', renderer: Renderer.event_region, width: 70, dataIndex: 'R0', sortable: false}
			,	{header: "Deception Pass State Park", tooltip: 'Deception Pass State Park', renderer: Renderer.event_region, width: 70, dataIndex: 'R1', sortable: false}
			,	{header: "Turtleback Preserve", tooltip: 'Turtleback Preserve', renderer: Renderer.event_region, width: 70, dataIndex: 'R2', sortable: false}
			,	{header: "Forbes Point", tooltip: 'Forbes Point', renderer: Renderer.event_region, width: 70, dataIndex: 'R3', sortable: false}
			,	{header: "West Beach", tooltip: 'West Beach', renderer: Renderer.event_region, width: 70, dataIndex: 'R4', sortable: false}
			,	{header: "Naas Admiralty", tooltip: 'Naas Admiralty', renderer: Renderer.event_region, width: 70, dataIndex: 'R5', sortable: false}
			,	{header: "Ebey\'s Prairie NPS Turnout", tooltip: 'Ebey\'s Prairie NPS Turnout', renderer: Renderer.event_region, width: 70, dataIndex: 'R6', sortable: false}
			,	{header: "Ebey\'s Landing", tooltip: 'Ebey\'s Landing', renderer: Renderer.event_region, width: 70, dataIndex: 'R7', sortable: false}
			,	{header: "Ft. Casey", tooltip: 'Ft. Casey', renderer: Renderer.event_region, width: 70, dataIndex: 'R8', sortable: false}
			,	{header: "Ebey\'s Bluff, TNC", tooltip: 'Ebey\'s Bluff, TNC', renderer: Renderer.event_region, width: 70, dataIndex: 'R9', sortable: false}
		]
	,	eventFields: Ext.encode([
				{"nodeValue":"1", "nodeApi":"land_id"}
			,	{"nodeValue":"2", "nodeApi":"land_id"}
			,	{"nodeValue":"3", "nodeApi":"land_id"}
			,	{"nodeValue":"4", "nodeApi":"land_id"}
			,	{"nodeValue":"5", "nodeApi":"land_id"}
			,	{"nodeValue":"6", "nodeApi":"land_id"}
			,	{"nodeValue":"7", "nodeApi":"land_id"}
			,	{"nodeValue":"8", "nodeApi":"land_id"}
			,	{"nodeValue":"9", "nodeApi":"land_id"}
			,	{"nodeValue":"10", "nodeApi":"land_id"}
		])

	,	dwcMatrixFields: Ext.encode([
				{"nodeValue":"1",	"nodeApi": "land_id"}
			,	{"nodeValue":"2",	"nodeApi": "land_id"}
			,	{"nodeValue":"3",	"nodeApi": "land_id"}
			,	{"nodeValue":"4",	"nodeApi": "land_id"}
			,	{"nodeValue":"5",	"nodeApi": "land_id"}
			,	{"nodeValue":"6",	"nodeApi": "land_id"}
			,	{"nodeValue":"7",	"nodeApi": "land_id"}
			,	{"nodeValue":"8",	"nodeApi": "land_id"}
			,	{"nodeValue":"9",	"nodeApi": "land_id"}
			,	{"nodeValue":"10",	"nodeApi": "land_id"}
		])
	,	dwcMatrixColumns: [
				{header: "Scientific Name", id: 'ScientificName', width: 200, dataIndex: 'ScientificName', sortable: true}
			,	{header: "Smith Prairie", tooltip: 'Smith Prairie', renderer: Renderer.region, width: 70, dataIndex: 'R0', sortable: false}
			,	{header: "Deception Pass State Park", tooltip: 'Deception Pass State Park', renderer: Renderer.region, width: 70, dataIndex: 'R1', sortable: false}
			,	{header: "Turtleback Preserve", tooltip: 'Turtleback Preserve', renderer: Renderer.region, width: 70, dataIndex: 'R2', sortable: false}
			,	{header: "Forbes Point", tooltip: 'Forbes Point', renderer: Renderer.region, width: 70, dataIndex: 'R3', sortable: false}
			,	{header: "West Beach", tooltip: 'West Beach', renderer: Renderer.region, width: 70, dataIndex: 'R4', sortable: false}
			,	{header: "Naas Admiralty", tooltip: 'Naas Admiralty', renderer: Renderer.region, width: 70, dataIndex: 'R5', sortable: false}
			,	{header: "Ebey\'s Prairie NPS Turnout", tooltip: 'Ebey\'s Prairie NPS Turnout', renderer: Renderer.region, width: 70, dataIndex: 'R6', sortable: false}
			,	{header: "Ebey\'s Landing", tooltip: 'Ebey\'s Landing', renderer: Renderer.region, width: 70, dataIndex: 'R7', sortable: false}
			,	{header: "Ft. Casey", tooltip: 'Ft. Casey', renderer: Renderer.region, width: 70, dataIndex: 'R8', sortable: false}
			,	{header: "Ebey\'s Bluff, TNC", tooltip: 'Ebey\'s Bluff, TNC', renderer: Renderer.region, width: 70, dataIndex: 'R9', sortable: false}
		]
}
